package com.sneakxy.beetl;

import java.io.File;

public class TemplateDir {

	private String key;
	
	private String path;
	
	public TemplateDir() {}
	
	public TemplateDir(String key, String path) {
		this.key = key;
		this.path = path;
	}
	
	public void mkdirs() {
		File file = new File(path);
		if(!file.exists()) {
			System.out.println(String.format("创建文件夹：%s", file.getAbsolutePath()));
			file.mkdirs();
		}
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}
	
}
